<div class="form-group" *ngIf="hasEnd">
  <label>数据密度：</label>
  <label class="radio-inline">
      <input type="radio" #day name="timeType"  value="day" (change)="changeDate(day.value)" checked> 日
  </label>
  <label class="radio-inline">
      <input type="radio" #month name="timeType" value="month" (change)="changeDate(month.value)"> 月
  </label>
  <label class="radio-inline">
      <input type="radio" #year name="timeType" value="year" (change)="changeDate(year.value)"> 年
  </label>
</div>
<div class="form-group">
  <label *ngIf="!hasEnd">选择时间：</label>  
  <label *ngIf="hasEnd">开始时间：</label>
  <div class="input-group">
    <my-date-picker [options]="myDatePickerOptions" [placeholder]="placeholder" locale="zh-cn"
    [(ngModel)]="begindate" (dateChanged)="start($event)" ></my-date-picker>
  </div>
</div>
<div class="form-group" *ngIf="hasEnd">
  <label>结束时间：</label>
  <div class="input-group">
    <my-date-picker  [options]="myDatePickerOptions" [placeholder]="placeholder" locale="zh-cn"
    [(ngModel)]="enddate" (dateChanged)="end($event)" ></my-date-picker>
  </div>
</div>

